package cn.jianyongjie.user.mapper;

import cn.jianyongjie.basic.dto.LoginDto;
import cn.jianyongjie.user.domain.Logininfo;
import cn.jianyongjie.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jianyongjie
 * @since 2022-05-09
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {


    /*
    * @Title: LogininfoMapper
    * @Description: 登录
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/10 12:26
    * @Parameters: * @param username
     * @param type
    * @Return cn.jianyongjie.user.domain.Logininfo
    */
    Logininfo LoadByDto(@Param("username") String username, @Param("type") Integer type);

    /*
    * @Title: LogininfoMapper
    * @Description: 根据userId查询数据
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/12 18:24
    * @Parameters: * @param userId
    * @Return cn.jianyongjie.user.domain.Logininfo
    */
    Logininfo LoadByUserId(Long userId);
}
